import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';


const routes: Routes = [
  {
    path: 'login', loadChildren: () => import('./pages/login/login.module').then(m => m.LoginModule),
    data: { title: '登录' }
  },
  {
    path: '', redirectTo: '/home/heroes', pathMatch: 'full'
  },
  {
    path: '**', redirectTo: '/home/heroes'
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
